<template>
  <div id="todoList">
    <li @click="handleDel" :index="index">{{content}}</li>
  </div>
</template>

<script>
  export default {
    name: "todoList",
    props:['content','index'],
    data() {
      return {
        msg:'',
      }
    },
    methods:{
      handleDel(){
        this.$emit('del',this.index);
      }
    }
  }
</script>

<style scoped>

</style>
